package com.jzsm.common.enums;

/**
 * 定义了报表输出类型，固定了可输出类型
 *
 * @author
 */
public enum DocTypeEnum {

    PDF("pdf", "application/pdf"),
    HTML("html", "application/xhtml+xml"),
    XLS("xls", "application/vnd.ms-excel"),
    XLSX("xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),
    XML("xml", "application/xml"),
    RTF("rtf", "text/rtf"),
    CSV("csv", "text/csv"),
    DOC("doc", "application/msword"),
    DOCX("docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");

    /**
     * 文档后缀
     */
    private String suffix;
    /**
     * mime type
     */
    private String mimeType;

    DocTypeEnum(String docType, String mimeType) {
        this.suffix = docType;
        this.mimeType = mimeType;
    }

    public String getSuffix() {
        return suffix;
    }

    public String getMimeType() {
        return mimeType;
    }
}
